/** When your routing table is too long, you can split it into small modules**/

import Layout from '@/layout'

const goodRouter = {
  path: '/good',
  component: Layout,
//   redirect: 'noRedirect',
  name: 'Good',
  meta: {
    title: 'Good',
    icon: 'money',
    roles: ['editor']
  },
  children: [{
      path: 'list',
      component: () => import('@/views/good/good-list'),
      name: 'GoodList',
      meta: {
        title: 'Good list',
        noCache: true,
        roles: ['editor']
      }
    },
    {
      path: 'add',
      component: () => import('@/views/good/good-add'),
      name: 'GoodAdd',
      meta: {
        title: 'Good add',
        noCache: true,
        roles: ['editor']
      }
    },
  ]
}

export default goodRouter
